package com.qidian.zl.paper.dao;

import com.qidian.zl.paper.pojo.Answer;

import java.util.List;

public interface AnswerDAO {
    // 保存一组answer
    public int saveAnswers(List<Answer> answers);

    // 查询对应的paper下的所有的答案
    List<Answer> qieryAnswerByPaperId(long paperId,int page,int size);

    int queryTotal(long paperId);


    int deleteByGroupId(String groupId);
    List<Answer> queryAnswerByTime(long paperId,String startTime,String endTime,int page,int size);
    int queryTotal(long paperId,String startTime,String endTime);

}